import { http } from '@/utils/request'

// 记录相关接口
export const recordApi = {
  // 获取销售记录列表
  getSalesList: (params) => {
    return http.get('/record/sales', params)
  },

  // 获取进货记录列表
  getPurchaseList: (params) => {
    return http.get('/record/purchase', params)
  },

  // 获取销售统计
  getSalesStatistics: (params) => {
    return http.get('/record/sales/statistics', params)
  },

  // 导出销售记录
  exportSales: (params) => {
    return http.get('/record/sales/export', params)
  },

  // 导出进货记录
  exportPurchase: (params) => {
    return http.get('/record/purchase/export', params)
  },

  // 获取今日数据概览
  getOverview: () => {
    return http.get('/record/overview')
  }
}